var app = new Vue({
    el: '#app',
    data: {
        tex: 'Hello latex!'
    },
    computed:{
        imgUrl : function(){
            return '/equation?preview=true&tex='+  encodeURIComponent(this.tex) ;
        }
    }
})